package Override;

import java.awt.*;

public class OverrideTest {
    public static void main(String[] args) {
        Shape shape = new Shape();
        shape.shout();

        Chick chick = new Chick();
        chick.shout();

        Pig pig = new Pig();
        pig.shout();
    }
}

class Animal1{
    public void shout(){
        System.out.println("叫");
    }
}

class Shape extends Animal1{
    @java.lang.Override
    public void shout() {
        System.out.println("绵绵");
    }
}

class Chick extends Animal1{
    @java.lang.Override
    public void shout() {
        System.out.println("叽叽");
    }
}

class Pig extends Animal1{
    @java.lang.Override
    public void shout() {
        System.out.println("轰轰");
    }
}





